package com.tea.tl.controller;

import com.tea.common.dto.DiscountCouponAddDto;
import com.tea.common.vo.R;
import com.tea.tl.service.intf.DiscountCouponService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/server/discountcoupon/")
public class DiscountCouponController {
    @Resource
    private DiscountCouponService service;

    @PostMapping("add.do")
    public R add(@RequestBody DiscountCouponAddDto dto){
        return service.add(dto);
    }
    @GetMapping("sel.do")
    public R sel(){
        return service.select();
    }

}
